package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "news_platforminfo")
//@NamedQueries({@NamedQuery(name = "NewsPlatforminfo.findAll", query = "SELECT n FROM NewsPlatforminfo n"), @NamedQuery(name = "NewsPlatforminfo.findById", query = "SELECT n FROM NewsPlatforminfo n WHERE n.platformid = :platformid")})
public class NewsPlatforminfo implements Serializable {
	    private static final long serialVersionUID = 1L;
	    @Id
	    @GeneratedValue(strategy = GenerationType.IDENTITY)
	    @Basic(optional = false)
	    @Column(name = "platformid")			  
	    private String platformid;				  //id
	    @Column(name = "mplatform")             
	    private String mplatform;                 //平台
	    @Column(name = "magent")                
	    private String magent;                    //渠道
	    @Column(name = "mserialnum")
	    private String mserialnum;                //客户端序列号
	    @Column(name = "note")
	    private String note;                 	 //描述
	    public NewsPlatforminfo(){
	    	
	    }
	    public NewsPlatforminfo(String platformid){
	    	this.platformid=platformid;
	    }
	    
		public String getPlatformid() {
			return platformid;
		}
		public void setPlatformid(String platformid) {
			this.platformid = platformid;
		}
		public String getMplatform() {
			return mplatform;
		}
		public void setMplatform(String mplatform) {
			this.mplatform = mplatform;
		}
		public String getMagent() {
			return magent;
		}
		public void setMagent(String magent) {
			this.magent = magent;
		}
		public String getMserialnum() {
			return mserialnum;
		}
		public void setMserialnum(String mserialnum) {
			this.mserialnum = mserialnum;
		}
		public String getNote() {
			return note;
		}
		public void setNote(String note) {
			this.note = note;
		}
		
		@Override
	    public int hashCode() {
	        int hash = 0;
	        hash += (platformid != null ? platformid.hashCode() : 0);
	        return hash;
	    }

	    @Override
	    public boolean equals(Object object) {
	        if (!(object instanceof NewsPlatforminfo)) {
	            return false;
	        }
	        NewsPlatforminfo other = (NewsPlatforminfo) object;
	        if ((this.platformid == null && other.platformid != null) || (this.platformid != null && !this.platformid.equals(other.platformid))) {
	            return false;
	        }
	        return true;
	    }

	    @Override
	    public String toString() {
	        return "com.dp.vo.NewsPlatforminfo[platformid=" + platformid + "]";
	    }
}
